export interface ResponseData {
  code: number;
  message: string;
  ok: boolean;
}

export interface Records {
  id?: number;
  createTime?: string;
  updateTime?: string;
  username?: string;
  password?: string;
  name?: string;
  phone?: null;
  roleName?: string;
}

export interface Data {
  records: Records[];
  total: number;
  size: number;
  current: number;
  orders: [];
  optimizeCountSql: boolean;
  hitCount: boolean;
  countId: null;
  maxLimit: null;
  searchCount: boolean;
  pages: number;
}
export interface UserResponseData extends ResponseData {
  data: Data;
}

export interface AssignRoles {
  id: number;
  createTime: string;
  updateTime: string;
  roleName: string;
  remark: null;
}

export type assignRoles = AssignRoles[];

export interface AllRolesList {
  id: number;
  createTime: string;
  updateTime: string;
  roleName: string;
  remark: null;
}

export type allRolesList = AllRolesList[];

export interface RoleResponseData extends ResponseData {
  data: {
    assignRoles: assignRoles;
    allRolesList: allRolesList;
  };
}

export interface SetRoleData {
  userId: number;
  roleIdList: number[];
}
